package com.xinxing.learning.security.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
// @CrossOrigin
@RestController
public class DemoController {

    // @CrossOrigin
    @GetMapping("/demo")
    public String demo() {
        log.info("demo() called with parameters => {}", "security cors demo interface test log");
        return "security cors demo test";
    }
}
